package _23.waiguan;

import java.io.Console;

class Facade {
    SubSystemOne one;
    SubSystemTwo two;
    SubSystemThree three;
    SubSystemFour four;
    public Facade() {
        one = new SubSystemOne();
        two = new SubSystemTwo();
        three = new SubSystemThree();
        four = new SubSystemFour();
    }
    public void MethodA() {
        System.out.println("\n方法组合A()---");
        one.MethodOne();
        two.MethodTwo();
        four.MethodFour();
    }
    public void MethodB() {
        System.out.println("\n方法组合B()---");
        two.MethodTwo();
        three.MethodThree();
    }

    public static void main(String[] args) {
        Facade facade = new Facade();
        facade.MethodA();
        facade.MethodB();
    }
}